package top.kaoshanji.p2ch14b;

/**
 * 代码清单-p2ch14b-154页b：修改后的采购管理
 * @author kaoshanji
 * ^_^
 * create time 2025/3/23 14:26
 */
public class Purchase extends AbstractColleague {

    public Purchase(AbstractMediator mediator) {
        super(mediator);
    }

    // 采购IBM电脑
    public void buyIBMComputer(int number) {
        super.mediator.execute(ExecuteType.PURCHASE_BUY, number);
    }

    // 不再采购IBM电脑
    public void refuseBuyIBM() {
        System.out.println("不再采购IBM电脑");
    }

}
